package com.wan37.logic.guild.domain.vo;

import com.wan37.logic.guild.domain.entity.GuildDO;
import com.wan37.protobuf.message.client2server.game.GameGuild;

import javax.persistence.Column;

/**
 * @author : luoyong
 * @date : 2020-08-03 16:12
 **/
public class GuildVO {
    private String guildId;
    private String name;
    private String headerId;
    private int level;
    private long experience;
    private String notice;

    public GuildVO(){}

    public GuildVO(GuildDO guildDO){
        this.guildId = guildDO.getGuildId();
        this.name = guildDO.getName();
        this.headerId = guildDO.getHeaderId();
        this.level = guildDO.getLevel();
        this.experience = guildDO.getExperience();
        this.notice = guildDO.getNotice();
    }

    public GuildVO(GameGuild.Guild guild) {
        this.guildId = guild.getGuildId();
        this.name = guild.getName();
        this.headerId = guild.getHeaderId();
        this.level = guild.getLevel();
        this.experience = guild.getExperience();
        this.notice = guild.getNotice();
    }

    public String getGuildId() {
        return guildId;
    }

    public void setGuildId(String guildId) {
        this.guildId = guildId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHeaderId() {
        return headerId;
    }

    public void setHeaderId(String headerId) {
        this.headerId = headerId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public long getExperience() {
        return experience;
    }

    public void setExperience(long experience) {
        this.experience = experience;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    @Override
    public String toString() {
        return "GuildVO{" +
                "guildId='" + guildId + '\'' +
                ", name='" + name + '\'' +
                ", headerId='" + headerId + '\'' +
                ", level=" + level +
                ", experience=" + experience +
                ", notice='" + notice + '\'' +
                '}';
    }
}
